import config from "../common/config";


export function langDictSerach(name) {

	return uni.$u.http.post('messages/serach',{
		name:name
	});

}

export function getByMapsList() {
	var baseUrl=config.baseUrl
	var localDataMaps=uni.getStorageSync("localDataMaps")

	
	return new Promise((resolve,reject)=>{
		if(localDataMaps){
			resolve(localDataMaps)
		}else{
		uni.$u.http.get('messages/maps').then(res=>{
			uni.setStorageSync("localDataMaps",res)
			resolve(res)
		});
		}
	})

}

